package com.you.concurrent.juc.reentrantlock;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class ReentrantLockDemo {

    static Lock lock = new ReentrantLock(); //可重入锁

    public static void main(String[] args) {
        try {
            lock.lock();
            System.out.println("------ReentrantLockDemo-----");
        } finally {
            lock.unlock();
        }
    }
}
